package test;
import java.util.Calendar;

public class RecurrenceGen {
	
	// iterates from start date to end date printing on days to create weekly event
	public <E> void createRecurrence(boolean[] dow, E event, Calendar start, Calendar end) {
		while(!start.after(end)) {
			start.add(Calendar.DATE, 1);
			if(dow[start.get(Calendar.DAY_OF_WEEK)-1]) {
				System.out.println("TODO Create event on: "+start.getTime().toString().substring(0,11));
			}
		}
	}
}
